<%-- 
    Document   : ChangePass
    Created on : Sep 7, 2013, 8:29:54 PM
    Author     : Thanh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Change Password Admin</title>
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <script>
        function CheckAdmin()
        {
            if (ChangePassd.txt_password.value == "") {
                alert(' Password can not be empty ');
                ChangePassd.txt_password.focus();
                return false;
            }
            else if (ChangePassd.txt_newpassword.value == "") {
                alert(' Password New can not be empty ');
                ChangePassd.txt_newpassword.focus();
                return false;
            }
            else if (ChangePassd.txt_confirmnewpassword.value =="") {
                alert('  Confirm Password New can not be empty ');
                ChangePassd.txt_confirmnewpassword.focus();
                return false;
            }
            else if (ChangePassd.txt_confirmnewpassword.value!= ChangePassd.txt_newpassword.value) {
                alert('  Confirm Password New Incorrect');
                ChangePassd.txt_confirmnewpassword.focus();
                return false;
            }
            return true;
        }
    </script>
        <style type="text/css">
            table.styletable{
                font-family: verdana,Times New Roman,sans-serif;
                font-size:11px;
                color:black;
                width: 50%;
            }
            table.styletable td {
                background:#ff99ff;
                border-width: 1px;
                padding: 8px;

            }
            h1{
                color: white;
            }
        </style>
    
    
    </head>
    <body>
<p><h1  align="center" class="h1">Change PassWord Adminitrator</h1></p
        <div align="center">            
            <div align="left" style="height: auto; width: 800px">
                <form action="Change_Password_admintration" id="frmchangepassadmin" name="ChangePassd" method="POST">
                    <table border="0" class="styletable" align="center">
                        <tbody>
                            <tr>
                                <td align="right">UserNameAdmin :</td>
                                <td><input type="text" name="txt_usernameadmin" align="left" class="gwt-TextBox" value="<%out.println(request.getSession().getAttribute("login_admin").toString());%>"/></td>
                            </tr>
                            <tr>
                                <td align="right">Password :</td>
                                <td><input type="password" align="left" name="txt_password" class="gwt-TextBox"  value="" /></td>
                            </tr>
                            <tr>
                                <td align="right">New Password :</td>
                                <td><input type="password" align="left" name="txt_newpassword" class="gwt-TextBox"  value="" /></td>
                            </tr>
                            <tr>
                                <td align="right">Confirm New Password :</td>
                                <td><input type="password" align="left" name="txt_confirmnewpassword" class="gwt-TextBox"  value="" /></td>
                            </tr>
                            <tr>
                                <td align="right" ><input type="submit" value="OK" class="gwt-Button" onclick="return CheckAdmin();"/></td>
                                <td align="left"><input type="reset" value="Reset"  class="gwt-Button" /></td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </body>                   

</tr>

</body>
</html>
